home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow_WinXP / VMR / VMRMix / StdAfx.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  2.1 KB  |  73 lines

  1. //------------------------------------------------------------------------------
  2. // File: Stdafx.h
  3. //
  4. // Desc: DirectShow sample code
  5. //       Include file for standard system include files or project-specific 
  6. //       include files that are used frequently, but are changed infrequently.
  7. //
  8. // Copyright (c) 2000-2001 Microsoft Corporation.  All rights reserved.
  9. //------------------------------------------------------------------------------
  10.  
  11. #if !defined(AFX_STDAFX_H__62FCB452_013F_45F5_ADDE_C3314ACD44C9__INCLUDED_)
  12. #define AFX_STDAFX_H__62FCB452_013F_45F5_ADDE_C3314ACD44C9__INCLUDED_
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17.  
  18. #define VC_EXTRALEAN        // Exclude rarely-used stuff from Windows headers
  19.  
  20. #include <afxwin.h>         // MFC core and standard components
  21. #ifndef _AFX_NO_AFXCMN_SUPPORT
  22. #include <afxcmn.h>         // MFC support for Windows Common Controls
  23. #endif // _AFX_NO_AFXCMN_SUPPORT
  24.  
  25. #if !defined(_WIN32_WINNT)
  26. #define _WIN32_WINNT 0x0400
  27. #endif
  28.  
  29. #define D3D_OVERLOADS
  30.  
  31. // included files
  32. #pragma warning(push,3)
  33. #include <streams.h>
  34. #include <commdlg.h>
  35. #include <stdlib.h>
  36. #include <stdio.h>
  37. #include <commctrl.h>
  38. #include <strmif.h>
  39. #include <combase.h>
  40. #include <stdarg.h>
  41. #include <stdio.h>
  42. #include <io.h>
  43. #include <uuids.h>
  44. #pragma warning(pop)
  45. #pragma warning(disable:4100 4189)
  46.  
  47. #include "resource.h"
  48. #include "sourceinfo.h"
  49. #include "VMRMixDlg.h"
  50. #include "vmrcore.h"
  51. #include "utils.h"
  52.  
  53.  
  54. #define DllImport   __declspec( dllimport )
  55.  
  56. // needed for the surface tests
  57. DEFINE_GUID(IID_IDirectDraw7,
  58.             0x15e65ec0,0x3b9c,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b);
  59.  
  60. // various constants
  61.  
  62. const ULONG MAXFILTERS = 128;
  63. #define FNS_PASS 0
  64. #define FNS_FAIL 1
  65.  
  66. // macros
  67. #define SAFERELEASE(punk)    if (NULL != punk)  (punk)->Release(), (punk) = NULL;  else 
  68.  
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  71.  
  72. #endif // !defined(AFX_STDAFX_H__62FCB452_013F_45F5_ADDE_C3314ACD44C9__INCLUDED_)
  73.